﻿<UserControl x:Class="PicturePortfolio.Silverlight.Views.PublicCommentsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ca="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="680" Height="400">
    
    <Grid x:Name="LayoutRoot" Background="Gray" HorizontalAlignment="Center" Width="660">
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="130"></RowDefinition>
        </Grid.RowDefinitions>
        <!--<StackPanel>-->
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Grid.Row="0" BorderThickness="0">
                <ListBox x:Name="IndividualComments" BorderThickness="0">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Vertical" Background="Gray"/>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Border BorderBrush="Black" 
							        BorderThickness="1" 
							        CornerRadius="0" 
							        Background="Transparent" Margin="1">
                                <ContentControl ca:View.Model="{Binding}" Margin="0" Background="Transparent"/>
                            </Border>
                        </DataTemplate>
                    </ListBox.ItemTemplate>                    
                </ListBox>
            </ScrollViewer>
            <Border BorderThickness="1" Grid.Row="1" Margin="5,10,0,0" Background="Gray">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25"></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition Height="30"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="90"></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="User Name" Grid.Row="0" Grid.Column="0" Foreground="White"></TextBlock>
                    <TextBox x:Name="UserName" Grid.Row="0" Grid.Column="1" Width="180" HorizontalAlignment="Left"></TextBox>
                    <StackPanel Grid.Row="1" Grid.ColumnSpan="2">
                        <TextBlock Text="Comment" Foreground="White"></TextBlock>
                        <TextBox x:Name="UserComment" Height="60"></TextBox>
                    </StackPanel>
                    <Button x:Name="SaveComment" Content="Save" Width="60" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" HorizontalAlignment="Right"></Button>
                </Grid>
            </Border>
        <!--</StackPanel>-->
    </Grid>
</UserControl>
